<?php
    namespace app\common;
    class Utils {
        public static function encode($str){
            $enptyedStr = base64_encode($str);
            $turnStr = trim($enptyedStr,"=");
            return $turnStr = strrev($turnStr);
        }

        public static function decode($str){
            $turnStr = strrev($str);
            return base64_decode($turnStr);
        }
    }